package com.yxinsur.imc.business.events.listener;

import com.yxinsur.imc.business.events.event.OrderCreateEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Component;


/**
 * 保单录入事件监听类
 * @author imc
 *
 */
@Component
public class OrderCreateEventListener implements ApplicationListener<OrderCreateEvent>{


    @Async
    @Override
    public void onApplicationEvent(OrderCreateEvent event) {
        System.out.println("保单录入成功：" + event.getOrder().toString()+",信息提示为:"+event.getMsg());
    }

}
